<?php require_once '../../Controller/Controller.AlteraCadastro.php'; ?>

<body onload="campocursor()">
<?php require 'cabecalho.php'; ?>
    <div id="miolo">    
        <div id="categorias">
            <?php require_once 'menu_categorias.php'; ?>
        </div>	
        <div id="conteudo2">
            <div class="containers">        
            <form name="cad_usuario" action="<?php $PHP_SELF;?>" method="POST">
			<div class="containers">
				<p class="titulo-cadastro">Alterar Dados Cadastrais</p>
				<table summary="" >
					<tr>
						<td><strong>Nome Completo:*</strong></td>
                                                <td><input type="text" name="nome" value="<?php echo $nome; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>                                               
                                                <?php if (isset($erro['nome'])) echo $erro['nome']; ?>
                                                </td>					                                                
                                        </tr>
					<tr>
                                            <td><strong>RG:*</strong></td>					
                                            <td><input type="text" name="rg" value="<?php echo $rg; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                            <?php if (isset($erro['rg'])) echo $erro['rg']; ?>
                                            </td>					
					</tr>
					<tr>
                                            <td><strong>Data nascimento:*</strong></td>					
                                            <td><input type="text" name="data_nascimento" value="<?php echo $data_nascimento; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)" onkeypress="mascara(this,'####-##')"/>
                                            <?php if (isset($erro['data_nascimento'])) echo $erro['data_nascimento']; ?>
                                            </td>					
					</tr>
					<tr>
						<td><strong>Telefone:*</strong></td>					
                                                <td><input type="text" name="telefone" value="<?php echo $telefone; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['telefone'])) echo $erro['telefone']; ?>
                                                </td>					
					</tr>
					<tr>
                                            <td><strong>Celular:</strong></td>					
                                            <td><input type="text" name="celular" value="<?php echo $celular; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                            <?php if (isset($erro['celular'])) echo $erro['celular']; ?>
                                            </td>					
					</tr>
<tr>
						<td><strong>Endere&ccedil;o:*</strong></td>
                                                <td><input type="text" name="endereco" value="<?php echo $endereco; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['endereco'])) echo $erro['endereco']; ?>
                                                </td>					
					</tr>
					<tr>
						<td><strong>Numero:*</strong></td>
                                                <td><input type="text" name="numero" value="<?php echo $numero; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['numero'])) echo $erro['numero']; ?>
                                                </td>					
					</tr>
					<tr>
                                            <td><strong>Complemento:</strong></td>
                                            <td><input type="text" name="complemento" value="<?php echo $complemento; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/></td>					
					</tr>
					<tr>
						<td><strong>CEP:*</strong></td>
                                                <td><input type="text" name="cep" value="<?php echo $cep; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['cep'])) echo $erro['cep']; ?>
                                                </td>					
					</tr>
					<tr>
						<td><strong>Bairro:*</strong></td>
                                                <td><input type="text" name="bairro" value="<?php echo $bairro; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['bairro'])) echo $erro['bairro']; ?>
                                                </td>					
					</tr>
					<tr>
						<td><strong>Cidade:*</strong></td>
                                                <td><input type="text" name="cidade" value="<?php echo $cidade; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['cidade'])) echo $erro['cidade']; ?>
                                                </td>					
					</tr>
					<tr>
						<td><strong>UF:*</strong></td>
                                                <td>
                                                    <select name="uf" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)">
                                                        <option value=""></option>
                                                        <option value="AC"<?php if ($uf == 'AC') echo 'selected="selected"'; ?>>AC</option>
                                                        <option value="AL"<?php if ($uf == 'AL') echo 'selected="selected"'; ?>>AL</option>
                                                        <option value="AP"<?php if ($uf == 'AP') echo 'selected="selected"'; ?>>AP</option>
                                                        <option value="AM"<?php if ($uf == 'AM') echo 'selected="selected"'; ?>>AM</option>
                                                        <option value="BA"<?php if ($uf == 'BA') echo 'selected="selected"'; ?>>BA</option>
                                                        <option value="CE"<?php if ($uf == 'CE') echo 'selected="selected"'; ?>>CE</option>
                                                        <option value="DF"<?php if ($uf == 'DF') echo 'selected="selected"'; ?>>DF</option>
                                                        <option value="ES"<?php if ($uf == 'ES') echo 'selected="selected"'; ?>>ES</option>
                                                        <option value="GO"<?php if ($uf == 'GO') echo 'selected="selected"'; ?>>GO</option>
                                                        <option value="MA"<?php if ($uf == 'MA') echo 'selected="selected"'; ?>>MA</option>
                                                        <option value="MT"<?php if ($uf == 'MT') echo 'selected="selected"'; ?>>MT</option>
                                                        <option value="MS"<?php if ($uf == 'MS') echo 'selected="selected"'; ?>>MS</option>
                                                        <option value="MG"<?php if ($uf == 'MG') echo 'selected="selected"'; ?>>MG</option>
                                                        <option value="PA"<?php if ($uf == 'PA') echo 'selected="selected"'; ?>>PA</option>
                                                        <option value="PB"<?php if ($uf == 'PB') echo 'selected="selected"'; ?>>PB</option>
                                                        <option value="PR"<?php if ($uf == 'PR') echo 'selected="selected"'; ?>>PR</option>
                                                        <option value="PE"<?php if ($uf == 'PE') echo 'selected="selected"'; ?>>PE</option>
                                                        <option value="PI"<?php if ($uf == 'PI') echo 'selected="selected"'; ?>>PI</option>
                                                        <option value="RJ"<?php if ($uf == 'RJ') echo 'selected="selected"'; ?>>RJ</option>
                                                        <option value="RN"<?php if ($uf == 'RN') echo 'selected="selected"'; ?>>RN</option>
                                                        <option value="RS"<?php if ($uf == 'RS') echo 'selected="selected"'; ?>>RS</option>
                                                        <option value="RO"<?php if ($uf == 'RO') echo 'selected="selected"'; ?>>RO</option>
                                                        <option value="RR"<?php if ($uf == 'RR') echo 'selected="selected"'; ?>>RR</option>
                                                        <option value="SC"<?php if ($uf == 'SC') echo 'selected="selected"'; ?>>SC</option>
                                                        <option value="SP"<?php if ($uf == 'SP') echo 'selected="selected"'; ?>>SP</option>
                                                        <option value="SE"<?php if ($uf == 'SE') echo 'selected="selected"'; ?>>SE</option>
                                                        <option value="TO"<?php if ($uf == 'TO') echo 'selected="selected"'; ?>>TO</option>
                                                    </select>   
                                                    <?php if (isset($erro['uf'])) echo $erro['uf'];?>
                                                </td>					
					</tr>                                        
				</table>				
			</div>	
                    <div align="center">
                    <input type="submit" value="Atualizar" class="bt_buscar"/>
                    <a href="usuario-configuracoes.php"><input type="button" value="Voltar" class="bt_buscar"/></a>
                    </div>
		</form>
            </div>  
        </div>     
    </div>
	<div id="rodape">
		<div id="busca">
			<form>
				Buscar em 
				<select name="buscaTipo" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)">
					<option value="o"></option>
					<option value="autor">Autor</option>
					<option value="titulo">Titulo</option>
					<option value="">Editora</option>			
				</select>
				<input type="text" name="buscador" class="cx_buscar" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                <input type="submit" value="Buscar" class="bt_buscar"/>		
			</form>	
		</div>
		
	</div>
</div>
</body>

</html>